package com.ruoyi.framework.aspectj;

/**
 * 动态记录、获取操作模块
 */
public class LogContext {

    private static final ThreadLocal<String> DYNAMIC_TITLE = new ThreadLocal<>();

    public static void setDynamicTitle(String title) {
        DYNAMIC_TITLE.set(title);
    }

    public static String getDynamicTitle() {
        return DYNAMIC_TITLE.get();
    }

    public static void clear() {
        DYNAMIC_TITLE.remove();
    }
}
